package com.novax.ex.activity.provider.api.model;

import com.novax.ex.common.base.BaseEntity;
import lombok.Data;
import lombok.EqualsAndHashCode;

import java.math.BigDecimal;

/**
 * Description: 财务记录entity
 *
 * @author shaoqiping
 * @date 7/30/21 17:25
 */
@EqualsAndHashCode(callSuper = true)
@Data
public class FinanceRecordEntity extends BaseEntity {

    /**
     * 租户id
     */
    private Long tenantId;

    /**
     * 用户id
     */
    private Long userId;

    /**
     * 委托id
     */
    private Long orderId;

    /**
     * 交易对象
     */
    private String symbol;

    /**
     * 交易的币种
     */
    private String currency;

    /**
     * 价格
     */
    private BigDecimal price;

    /**
     * 操作类型:1=挂单冻结,2=撤单解冻,3=交易支出,4=交易收入,5=差价退回,6=手续费,7=冲币,8=提币,9=otc转入,10=转出至otc,
     * 11=永续合约转入,12=转出至永续合约,13=超级合约转入,14=转出至超级合约
     */
    private Integer operation;

    /**
     * 交易金额
     */
    private BigDecimal amount;

    /**
     * 状态:0=作废,1=正常
     */
    private Integer status;

    /**
     * 被邀请人id
     */
    private Long inviteeId;

}
